home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 1169 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: Casey Muratori <cmu@netcom.com>
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Q: pure virtual destructors
  5. Date: 19 Apr 1996 14:43:39 GMT
  6. Organization: Northwest Link
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <3176D10D.2B4C@netcom.com>
  9. References: <4kere7$qmm@netlab.cs.rpi.edu> <4kguil$592@netlab.cs.rpi.edu> <4l0gut$r8q@netlab.cs.rpi.edu> <4l1bmi$1li@netlab.cs.rpi.edu> <4l4v5s$eke@netlab.cs.rpi.edu>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset="us-ascii"
  13. Content-Transfer-Encoding: 7bit
  14. X-Nntp-Posting-Host: port45.annex3.nwlink.com
  15. X-Mailer: Mozilla 2.0 (Win95; I)
  16. X-Lines: 21
  17. Content-Length: 654
  18. Originator: clamage@taumet
  19.  
  20. Chris Page wrote:
  21. > In article <4l1bmi$1li@netlab.cs.rpi.edu>, sachs@fnal.fnal.gov wrote:
  22. > > Personally, I consider virtual destructors to be one of the blemishes
  23. > > of the C++ language. There should be a better way to make a class
  24. > > (with no other pure virtual functions) abstract.
  25. > How about an "abstract" keyword that you can place before "class"?
  26.  
  27. Hmmm.  If the class has no pure-virtual functions, why would you want
  28. to make it "abstract"?  If all you want to do is prevent someone from
  29. instantiating an object of its type, simply make the constructor private,
  30. no?
  31.  
  32. - Casey
  33.  
  34. -- 
  35. "Fear can hold you prisoner.  Hope can set you free."
  36.  
  37.  
  38.  
  39.  
  40. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  41. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  42. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  43. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  44. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  45.